
/*
三个led，红黄绿，分别接3、4、5引脚
3个led分别接一个电阻，再接到GND
*/

const int ledRed = 3;
const int ledYellow = 4;
const int ledGreen = 5;

void setup() {
  for(int i = 3; i < 6; ++i)
  {
    pinMode(i, OUTPUT);  
  }
}

void loop() {
  digitalWrite(ledRed, HIGH);
  delay(1000);
  digitalWrite(ledRed,LOW);
  digitalWrite(ledGreen, HIGH);
  delay(3000);
  digitalWrite(ledGreen, LOW);
  delay(100);
  digitalWrite(ledYellow, HIGH);
  delay(1000);
  digitalWrite(ledYellow, LOW);
  delay(100);
  digitalWrite(ledRed, HIGH);
  delay(2000);
}
